    //多行文本输入框剩余字数计算
    function checkMaxInput(obj, maxLen) {
        if (obj == null || obj == undefined || obj == "") {
            return;
        }
        if (maxLen == null || maxLen == undefined || maxLen == "") {
            maxLen = 200;
        }

        var strResult;
        var $obj = $(obj);
        var newid = $obj.attr("id") + 'msg';

        if (obj.value.length > maxLen) {	//如果输入的字数超过了限制
            obj.value = obj.value.substring(0, maxLen); //就去掉多余的字
            strResult = '<span id="' + newid + '" class=\'Max_msg\' ><br/>剩(' + (maxLen - obj.value.length) + ')字</span>'; //计算并显示剩余字数
        }
        else {
            strResult = '<span id="' + newid + '" class=\'Max_msg\' ><br/>剩(' + (maxLen - obj.value.length) + ')字</span>'; //计算并显示剩余字数
        }

        var $msg = $("#" + newid);
        if ($msg.length == 0) {
            $obj.after(strResult);
        }
        else {
            $msg.html(strResult);
        }
    }
    //清空剩除字数提醒信息
    function resetMaxmsg() {
        $("span.Max_msg").remove();
    }

    //设置文本框光标位置
    function setCursor(){
        var ele=document.getElementById("#edit_processInfo");
        var length = ele.value.length;
        if(length > 0)
            setCursorPosition(ele,0);
        else
            setCursorPosition(ele,length);
    }
    /*
     * 设置输入域(input/textarea)光标的位置
     * @param {HTMLInputElement/HTMLTextAreaElement} elem
     * @param {Number} index
     */
    function setCursorPosition(elem, index) {
        var val = elem.value;
        var len = val.length;
        // 超过文本长度直接返回
        if (len < index) return;
        setTimeout(function() {
            elem.focus();
            if (elem.setSelectionRange) { // 标准浏览器
                elem.setSelectionRange(index, index)
            } else { // IE9-
                var range = elem.createTextRange();
                range.moveStart("character", -len);
                range.moveEnd("character", -len);
                range.moveStart("character", index);
                range.moveEnd("character", 0);
                range.select()
            }
        }, 10)
    }
